package com.myway.dto.order;

import java.util.HashSet;
import java.util.Set;

/**
 * 类名称：DTOOrderChange 
 * 类描述：TODO 已存在订单所有修改（取消）的信息
 * 创建时间：2015年10月28日 下午2:28:07 
 * @author Jiang.Yida
 * @version V1.0
 */
public class DTOOrderChange implements java.io.Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -2832747505450315168L;

	/**
	 * 原订单
	 */
	private final DTOOrder originalOrder;
	
	/** 
	 * 新订单修改信息
	 */
	private DTOOrder newOrder;

	/**
	 * 被取消的旅客航段集合
	 */
	private Set<DTOPaxSegment> cancelledPaxSegmentSet = new HashSet<DTOPaxSegment>(0);
	
	/**
	 * airline
	 */
	private String airline;

	/**
	 * 
	 * @param originalOrder
	 *            Original order
	 */
	public DTOOrderChange(DTOOrder originalOrder) {
		super();
		this.originalOrder = originalOrder;
	}

	public DTOOrder getOriginalOrder() {
		return originalOrder;
	}

	public DTOOrder getNewOrder() {
		return newOrder;
	}

	/**
	 * Set new order information to be updated. Only the basic information inside the order object will be updated. The collection
	 * of passengers and segments inside the object will be ignored. To set updated segment and passenger, call other methods of
	 * this class.
	 * 
	 * @param newOrder
	 */
	public void setNewOrder(DTOOrder newOrder) {
		this.newOrder = newOrder;
	}

	public Set<DTOPaxSegment> getCancelledPaxSegmentSet() {
		return cancelledPaxSegmentSet;
	}

	public void setCancelledPaxSegmentSet(Set<DTOPaxSegment> cancelledPaxSegmentSet) {
		this.cancelledPaxSegmentSet = cancelledPaxSegmentSet;
	}

	/**
	 * @return the airline
	 */
	public String getAirline() {
		return this.airline;
	}

	/**
	 * @param airline the airline to set
	 */
	public void setAirline(String airline) {
		this.airline = airline;
	}
	
	
}
